<?php /* @var $view Model3_View */ ?>
<div class="contentBox">
    <div class="contentBoxTop">
        <h3>Eventos</h3>
    </div>
    <div class="innerContent">        
        <h4>Eventos creados:</h4><br/>        
        <table class="sTable">
            <tr>
                <th>Nombre del evento:</th>
                <th>Carpeta:</th>
                <th>Fecha del evento:</th>
                <th>Editar:</th>
                <th>Eliminar:</th>
            </tr>
            <?php
            foreach ($view->events as $event):
                echo '<tr id="event-container-'.$event->getId().'">';
                echo'<td>' . $event->getNameEvent() . '</td>';
                echo'<td>event_' . $event->getId() . '</td>';
                echo'<td>FECHA' . '</td>';
                echo'<td><a href="' . $view->url(array('module' => 'EventAdmin', 'controller' => 'Events', 'action' => 'index', 'event' => $event->getId())) . '">
                        <img src="" alt="Editar" /></a></td>';
                echo'<td><a href="#" onclick="deleteEvent(' . $event->getId() . ')" >
                        <img src="" alt="Eliminar"/>' . '</a></td>';
                echo '</tr>';
            endforeach;
            ?>
        </table>
    </div>   


    <input type="hidden" id="bdc-ajax-url" value="<?php echo $view->url(array('module' => 'EventAdmin', 'controller' => 'Users', 'action' => 'axImport')); ?>"/>
    <input type="hidden" id="url-post-del" value="<?php echo $view->url(array('module' => 'EventAdmin', 'controller' => 'Event', 'action' => 'axDeleteEvent')); ?> "/>
</div>